package com.jspx.boot.log;

import com.jspx.boot.Logger;

public class Slf4jLogger   implements Logger {
    final static private org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Slf4jLogger.class.getName());

    public Slf4jLogger(org.apache.log4j.Logger logger) {

    }

    public void debug(String msg) {
        this.log.debug(msg);
    }

    public void debug(String msg, Throwable e) {
        this.log.debug(msg, e);
    }

    public void info(String msg) {
        this.log.info(msg);
    }

    public void info(String msg, Throwable e) {
        this.log.info(msg, e);
    }

    public void warn(String msg) {
        this.log.warn(msg);
    }

    public void warn(String msg, Throwable e) {
        this.log.warn(msg, e);
    }

    public void error(String msg) {
        this.log.error(msg);
    }

    public void error(String msg, Throwable e) {
        this.log.error(msg, e);
    }

    public void error(Throwable e) {
        this.log.error("",e);
    }

    public void warn(Throwable e) {
        this.log.warn("",e);
    }

    public boolean isDebugEnabled() {
        return this.log.isDebugEnabled();
    }

    public boolean isInfoEnabled() {
        return this.log.isInfoEnabled();
    }

    public boolean isWarnEnabled() {
        return true;
    }

    public boolean isErrorEnabled() {
        return true;
    }

    public boolean isFatalEnabled() {
        return true;
    }
}
